<?php get_header(); ?>
	<div id="content"> 
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
			<small><?php the_time('F j, Y') ?> <!-- by <?php the_author() ?> --></small>
			<h2><?php the_title(); ?></h2>
			<div class="entry">
				<?php the_content(''); ?>
                <?php wp_link_pages( __('before=<div class="linkpages">Pages: &after=</div>','paranimage')); ?>
            </div><!-- end .entry -->
			<div class="postmetadata">
				<?php the_tags( __('Tags: ', 'paranimage'), ", ", " <br />" ) ?>
                <?php _e('Category: ', 'paranimage'); ?><?php the_category(', ') ?> <br />
				<?php _e('You can follow any responses to this entry via', 'paranimage'); ?> <?php post_comments_feed_link(__('Comments RSS','paranimage')); ?>.<br />
				<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
						// Both Comments and Pings are open ?>
				<?php _e('You can', 'paranimage'); ?><a href="#respond"> <?php _e('leave a comment', 'paranimage'); ?></a> <?php _e('or', 'paranimage'); ?> <a href="<?php trackback_url(); ?>" rel="trackback"><?php _e('trackback', 'paranimage'); ?></a> <?php _e('from your own site', 'paranimage'); ?>.
				<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
				// Only Pings are Open ?>
				<?php _e('Comments are currently closed, but you can', 'paranimage'); ?> <a href="<?php trackback_url(); ?> " rel="trackback"><?php _e('trackback', 'paranimage'); ?></a> <?php _e('from your own site', 'paranimage'); ?>.
				<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not ?>                            
				<?php _e('You can skip to the end to leave a comment. Trackbacks are currently not allowed.', 'paranimage'); ?>
                 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Neither Comments, nor Pings are open ?>
				<?php _e('Both comments and trackbacks are currently closed.', 'paranimage'); ?>
                 <?php } edit_post_link( __('Edit','paranimage'), ' | ', ''); ?>
			</div> <!-- end .postmetadata -->
			 <div class="navigation clearfloat" id="postnav">
				<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
				<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
			</div>
		</div><!-- end .post -->		
		<?php comments_template('', true); ?>
	<?php endwhile; else: ?>
		<div class="not-found">
			<h2 class="archive-title"><?php _e('The page you`re looking for doesn`t exist', 'paranimage'); ?></h2>
			<div class="entry">
				<p><?php _e('You can try search using keywords or ', 'paranimage'); ?><a href="<?php bloginfo('url'); ?>"><?php _e('go to home', 'paranimage'); ?></a></p>
			</div>
		</div>
	<?php endif; ?>
	</div><!-- end #content -->	
<?php get_sidebar(); ?>
<?php get_footer(); ?>
